/*
 * TablesView.h
 *
 *  Created on: 2011-1-23
 *      Author: Administrator
 */

#ifndef TABLESVIEW_H_
#define TABLESVIEW_H_

#include "ListBox.h"
#include "TableDatas.h"

class CTablesView : public CListBox
	{
public:
	static CTablesView* NewL(const TRect& aRect, const CCoeControl* aParent);
	static CTablesView* NewLC(const TRect& aRect, const CCoeControl* aParent);
	virtual ~CTablesView();
	
public:
	void setTableDatas(CTableDatas* aTableDatas);
	CTableDatas* TableDatas();
	void RefreshTable();
	
protected:
	CTablesView();
	
protected:
	virtual void Draw(const TRect& aRect) const;
	
private:
	CTableDatas* iTableDatas;//not own
	
	};

#endif /* TABLESVIEW_H_ */
